package WeekThree;

import java.util.Scanner;

public class Url {
    public static void main(String[] args) {
        System.out.println("请输入一个域名");
        Scanner scanner = new Scanner(System.in);
        String url =scanner.next();
        if (url.indexOf("www")!=-1){
            System.out.println("此域名为二级域名");
        }else{
            System.out.println("此域名为顶级域名");
        }
    }
}
